package com.sansecy.customview;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class TextRelateLayout extends RelativeLayout {

    private TextView mTextView;
    private View mCenterCursor;
    private View mBottomCursor;

    public TextRelateLayout(Context context) {
        super(context);
    }

    public TextRelateLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }

    private void init(Context context) {
        View rootView = View.inflate(context, R.layout.layout_relate_text, this);
        mTextView = rootView.findViewById(R.id.text);
        mCenterCursor = rootView.findViewById(R.id.center_cursor);
        mBottomCursor = rootView.findViewById(R.id.bottom_cursor);
    }

    public TextView getTextView() {
        return mTextView;
    }

    public void setTextView(TextView textView) {
        mTextView = textView;
    }

    public View getCenterCursor() {
        return mCenterCursor;
    }

    public View getBottomCursor() {
        return mBottomCursor;
    }

}
